<?php if (!defined('THINK_PATH')) exit(); /*a:5:{s:107:"D:\phpstudy_pro\WWW\qdcrmceshi.com\public/../application/admin\view\qingdongams\customer\customer\edit.html";i:1753166189;s:77:"D:\phpstudy_pro\WWW\qdcrmceshi.com\application\admin\view\layout\default.html";i:1746006160;s:74:"D:\phpstudy_pro\WWW\qdcrmceshi.com\application\admin\view\common\meta.html";i:1746006160;s:91:"D:\phpstudy_pro\WWW\qdcrmceshi.com\application\admin\view\qingdongams\common\form_edit.html";i:1751938036;s:76:"D:\phpstudy_pro\WWW\qdcrmceshi.com\application\admin\view\common\script.html";i:1746006160;}*/ ?>
<!DOCTYPE html>
<html>
    <head>
        <meta charset="utf-8">
<title><?php echo (isset($title) && ($title !== '')?$title:''); ?></title>
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=no">
<meta name="renderer" content="webkit">
<meta name="referrer" content="never">
<meta name="robots" content="noindex, nofollow">

<link rel="shortcut icon" href="/assets/img/favicon.ico" />
<!-- Loading Bootstrap -->
<link href="/assets/css/backend<?php echo \think\Config::get('app_debug')?'':'.min'; ?>.css?v=<?php echo htmlentities(\think\Config::get('site.version') ?? ''); ?>" rel="stylesheet">

<?php if(\think\Config::get('fastadmin.adminskin')): ?>
<link href="/assets/css/skins/<?php echo htmlentities(\think\Config::get('fastadmin.adminskin') ?? ''); ?>.css?v=<?php echo htmlentities(\think\Config::get('site.version') ?? ''); ?>" rel="stylesheet">
<?php endif; ?>

<!-- HTML5 shim, for IE6-8 support of HTML5 elements. All other JS at the end of file. -->
<!--[if lt IE 9]>
  <script src="/assets/js/html5shiv.js"></script>
  <script src="/assets/js/respond.min.js"></script>
<![endif]-->
<script type="text/javascript">
    var require = {
        config:  <?php echo json_encode($config ?? ''); ?>
    };
</script>

    </head>

    <body class="inside-header inside-aside <?php echo defined('IS_DIALOG') && IS_DIALOG ? 'is-dialog' : ''; ?>">
        <div id="main" role="main">
            <div class="tab-content tab-addtabs">
                <div id="content">
                    <div class="row">
                        <div class="col-xs-12 col-sm-12 col-md-12 col-lg-12">
                            <section class="content-header hide">
                                <h1>
                                    <?php echo __('Dashboard'); ?>
                                    <small><?php echo __('Control panel'); ?></small>
                                </h1>
                            </section>
                            <?php if(!IS_DIALOG && !\think\Config::get('fastadmin.multiplenav') && \think\Config::get('fastadmin.breadcrumb')): ?>
                            <!-- RIBBON -->
                            <div id="ribbon">
                                <ol class="breadcrumb pull-left">
                                    <?php if($auth->check('dashboard')): ?>
                                    <li><a href="dashboard" class="addtabsit"><i class="fa fa-dashboard"></i> <?php echo __('Dashboard'); ?></a></li>
                                    <?php endif; ?>
                                </ol>
                                <ol class="breadcrumb pull-right">
                                    <?php foreach($breadcrumb as $vo): ?>
                                    <li><a href="javascript:;" data-url="<?php echo htmlentities($vo['url'] ?? ''); ?>"><?php echo htmlentities($vo['title'] ?? ''); ?></a></li>
                                    <?php endforeach; ?>
                                </ol>
                            </div>
                            <!-- END RIBBON -->
                            <?php endif; ?>
                            <div class="content">
                                <style>
	label{
		font-weight:unset !important;
	}
</style>
<form id="edit-form" class="form-horizontal col-sm-12" role="form" data-toggle="validator" method="POST" action="">
	<?php echo token(); ?>
	<input type="hidden" name="ids" value="<?php echo $row['id']; ?>" />
	<div class="form-group">

		<div class="col-xs-12 col-sm-6">
			<div class="form-group col-sm-10">
				<label for="c-shop_id">所在地区:</label>
				<input id="c-area_id" data-rule="required" data-source="jieziarea/index?level_egt=2" class="form-control selectpage" name="row[area_id]" data-field="cont" type="text" value="<?php echo htmlentities($row['area_id'] ?? ''); ?>">
			</div>
		</div>

		<div class="col-xs-12 col-sm-6">
			<div class="form-group col-sm-10">
				<label for="c-shop_id">所属机构:</label>
				<input id="c-shop_id"
					   data-source="qingdongams/jigou/index"
					   data-field="jigou_name"
					   class="form-control selectpage"
					   name="row[jigou_id]"
					   type="text" value="<?php if(!empty($row["jigou_id"])): ?><?php echo htmlentities($row['jigou_id'] ?? ''); endif; ?>">
			</div>
		</div>

		<?php if(is_array($form_data) || $form_data instanceof \think\Collection || $form_data instanceof \think\Paginator): if( count($form_data)==0 ) : echo "" ;else: foreach($form_data as $key=>$val): if($val['config']['is_delete'] == true || true): if(isset($val['config']['addShow']) && $val['config']['addShow']): continue; endif; if($val['component'] == 'input'): ?>
<div class="col-xs-12 col-sm-6">
	<div class="form-group col-sm-10">
		<label for="c-<?php echo $val['id']; ?>"><?php if($val['config']['required'] == true): ?><span style="color:red;">*</span><?php endif; ?><?php echo $val['config']['label']; ?>:</label>
		<input id="c-<?php echo $val['id']; ?>" class="form-control"<?php if($val['config']['required'] == true): ?>data-rule="required"<?php endif; ?> placeholder="<?php echo $val['config']['placeholder']; ?>" name="row[<?php echo $val['id']; ?>]"
		type="text" <?php if(isset($row[$val['id']])): ?>value="<?php echo (isset($row[$val['id']]) && ($row[$val['id']] !== '')?$row[$val['id']]:""); ?>"<?php endif; ?> >
	</div>
</div>
<?php endif; if($val['component'] == 'input-number'): ?>
<div class="col-xs-12 col-sm-6">
	<div class="form-group col-sm-10">
		<label for="c-<?php echo $val['id']; ?>"><?php if($val['config']['required'] == true): ?><span style="color:red;">*</span><?php endif; ?><?php echo $val['config']['label']; ?>:</label>
		<input id="c-<?php echo $val['id']; ?>" class="form-control" <?php if($val['config']['required'] == true): ?>data-rule="required"<?php endif; ?>placeholder="<?php echo $val['config']['placeholder']; ?>" name="row[<?php echo $val['id']; ?>]"
		type="number" <?php if(isset($row[$val['id']])): ?>value="<?php echo (isset($row[$val['id']]) && ($row[$val['id']] !== '')?$row[$val['id']]:""); ?>"<?php endif; ?>>
	</div>
</div>
<?php endif; if($val['component'] == 'textarea'): ?>
<div class="col-xs-12 col-sm-10">
	<div class="form-group col-sm-10">
		<label for="c-<?php echo $val['id']; ?>"><?php if($val['config']['required'] == true): ?><span style="color:red;">*</span><?php endif; ?><?php echo $val['config']['label']; ?>:</label>
		<textarea id="c-<?php echo $val['id']; ?>" class="form-control" <?php if($val['config']['required'] == true): ?>data-rule="required"<?php endif; ?>rows="3" name="row[<?php echo $val['id']; ?>]"
		placeholder="<?php echo $val['config']['placeholder']; ?>"><?php echo (isset($row[$val['id']]) && ($row[$val['id']] !== '')?$row[$val['id']]:""); ?></textarea>
	</div>
</div>
<?php endif; if($val['component'] == 'radio'): ?>
<div class="col-xs-12 col-sm-6">
	<div class="form-group col-sm-10">
		<label ><?php if($val['config']['required'] == true): ?><span style="color:red;">*</span><?php endif; ?><?php echo $val['config']['label']; ?>:</label>
		<div class="radio">
			<?php if(is_array($val['config']['content']) || $val['config']['content'] instanceof \think\Collection || $val['config']['content'] instanceof \think\Paginator): if( count($val['config']['content'])==0 ) : echo "" ;else: foreach($val['config']['content'] as $key=>$vo): ?>
			<label><input name="row[<?php echo $val['id']; ?>]" type="radio" value="<?php echo $vo['value']; ?>"
						  <?php if(isset($row[$val['id']])): if($row[$val['id']] == $vo['value']): ?>checked<?php endif; endif; ?> /> <?php echo $vo['value']; ?></label>
			<?php endforeach; endif; else: echo "" ;endif; ?>
		</div>

	</div>
</div>
<?php endif; if($val['component'] == 'checkbox'): ?>
<div class="col-xs-12 col-sm-6">
	<div class="form-group col-sm-10">
		<label ><?php if($val['config']['required'] == true): ?><span style="color:red;">*</span><?php endif; ?><?php echo $val['config']['label']; ?>:</label>
		<div class="checkbox">
			<?php if(is_array($val['config']['content']) || $val['config']['content'] instanceof \think\Collection || $val['config']['content'] instanceof \think\Paginator): if( count($val['config']['content'])==0 ) : echo "" ;else: foreach($val['config']['content'] as $key=>$vo): ?>

			<label class="checkbox-inline"><input name="row[<?php echo $val['id']; ?>][]" type="checkbox" <?php if(isset($row[$val['id']])): if(in_array(($vo['value']), is_array($row[$val['id']])?$row[$val['id']]:explode(',',$row[$val['id']]))): ?>checked<?php endif; endif; ?>  value="<?php echo $vo['value']; ?>"/><?php echo $vo['value']; ?></label>

			<?php endforeach; endif; else: echo "" ;endif; ?>
		</div>

	</div>
</div>
<?php endif; if($val['component'] == 'Cascader'): ?>
<div class="col-xs-12 col-sm-6">
	<div class="form-group col-sm-10">
		<label for="c-<?php echo $val['id']; ?>"><?php if($val['config']['required'] == true): ?><span style="color:red;">*</span><?php endif; ?><?php echo $val['config']['label']; ?>:</label>
		<div class='control-relative'>
			<input id="c-<?php echo $val['id']; ?>" class="form-control"<?php if($val['config']['required'] == true): ?>data-rule="required"<?php endif; ?> data-toggle="city-picker" name="row[<?php echo $val['id']; ?>]" type="text"
			value="<?php echo (isset($row[$val['id']]) && ($row[$val['id']] !== '')?$row[$val['id']]:""); ?>" />
		</div>
	</div>
</div>
<?php endif; if($val['component'] == 'select'): ?>
<div class="col-xs-12 col-sm-6">
	<div class="form-group col-sm-10">
		<label for="c-<?php echo $val['id']; ?>"><?php if($val['config']['required'] == true): ?><span style="color:red;">*</span><?php endif; ?><?php echo $val['config']['label']; ?>:</label>
		<select id="c-<?php echo $val['id']; ?>"  class="form-control selectpicker" <?php if(isset($val['config']['multiple']) && $val['config']['multiple'] == true): ?> name="row[<?php echo $val['id']; ?>][]" multiple="" <?php else: ?> name="row[<?php echo $val['id']; ?>]" <?php endif; ?> data-live-search='true'>
			<option value="">请选择</option>
			<?php if(is_array($val['config']['content']) || $val['config']['content'] instanceof \think\Collection || $val['config']['content'] instanceof \think\Paginator): if( count($val['config']['content'])==0 ) : echo "" ;else: foreach($val['config']['content'] as $key=>$vo): if(isset($row[$val['id']])): if($val['data_value'] != '' && is_array($val['data_value']) && isset($val['data_value'][$vo['label']])): ?>

							<option value="<?php echo $vo['label']; ?>" <?php if($val['data_value'][$vo['label']] == $vo['label']): ?>selected<?php endif; ?>><?php echo $vo['label']; ?></option>

					<?php else: ?>
						<option value="<?php echo $vo['label']; ?>" <?php if($row[$val['id']] == $vo['label']): ?>selected<?php endif; ?>><?php echo $vo['label']; ?></option>
					<?php endif; else: ?>
				<option value="<?php echo $vo['label']; ?>" ><?php echo $vo['label']; ?></option>
				<?php endif; endforeach; endif; else: echo "" ;endif; ?>

		</select>
	</div>
</div>
<?php endif; if($val['component'] == 'TimePicker'): ?>
<div class="col-xs-12 col-sm-6">
	<div class="form-group col-sm-10">
		<label for="c-<?php echo $val['id']; ?>"><?php if($val['config']['required'] == true): ?><span style="color:red;">*</span><?php endif; ?><?php echo $val['config']['label']; ?>:</label>

		<input id="c-<?php echo $val['id']; ?>" class="form-control datetimepicker" data-date-format="YYYY-MM-DD HH:mm:ss"
			   placeholder="<?php echo $val['config']['placeholder']; ?>"<?php if($val['config']['required'] == true): ?>data-rule="required"<?php endif; ?> name="row[<?php echo $val['id']; ?>]" value="<?php echo (isset($row[$val['id']]) && ($row[$val['id']] !== '')?$row[$val['id']]:""); ?>" type="text">
	</div>
</div>
<?php endif; if($val['component'] == 'DatePicker'): ?>
<div class="col-xs-12 col-sm-6">
	<div class="form-group col-sm-10">
		<label for="c-<?php echo $val['id']; ?>"><?php if($val['config']['required'] == true): ?><span style="color:red;">*</span><?php endif; ?><?php echo $val['config']['label']; ?>:</label>

		<input id="c-<?php echo $val['id']; ?>" class="form-control datetimepicker" data-date-format="YYYY-MM-DD" placeholder="<?php echo $val['config']['placeholder']; ?>"
			   name="row[<?php echo $val['id']; ?>]" type="text" <?php if($val['config']['required'] == true): ?>data-rule="required"<?php endif; ?>
				value="<?php echo (isset($row[$val['id']]) && ($row[$val['id']] !== '')?$row[$val['id']]:""); ?>" >
	</div>
</div>
<?php endif; if($val['component'] == 'Rate'): ?>
<div class="col-xs-12 col-sm-6">
	<div class="form-group col-sm-10">
		<label for="c-<?php echo $val['id']; ?>"><?php echo $val['config']['label']; ?>:</label>
		<select id="c-<?php echo $val['id']; ?>" name="row[<?php echo $val['id']; ?>]" class="form-control">
			<?php if(isset($row[$val['id']])): ?>
			<option value="5" <?php if($row[$val['id']] == '5'): ?>selected<?php endif; ?> >5</option>
			<option value="4" <?php if($row[$val['id']] == '4'): ?>selected<?php endif; ?> >4</option>
			<option value="3" <?php if($row[$val['id']] == '3'): ?>selected<?php endif; ?> >3</option>
			<option value="2" <?php if($row[$val['id']] == '2'): ?>selected<?php endif; ?> >2</option>
			<option value="1" <?php if($row[$val['id']] == '1'): ?>selected<?php endif; ?> >1</option>
			<?php else: ?>
			<option value="5">5</option>
			<option value="4">4</option>
			<option value="3">3</option>
			<option value="2">2</option>
			<option value="1">1</option>
			<?php endif; ?>
		</select>
	</div>
</div>
<?php endif; if($val['component'] == 'uploadImage'): ?>
<div class="col-xs-12 col-sm-6">
	<div class="form-group col-sm-10">
		<label for="c-<?php echo $val['id']; ?>"><?php if($val['config']['required'] == true): ?><span style="color:red;">*</span><?php endif; ?><?php echo $val['config']['label']; ?>:</label>
		<div class="input-group">
			<input id="p-<?php echo $val['id']; ?>" class="form-control" size="35" name="row[<?php echo $val['id']; ?>]" type="text"  <?php if($val['config']['required'] == true): ?>data-rule="required"<?php endif; if(isset($row[$val['id'].'_str'])): ?>value="<?php echo $row[$val['id'].'_str']; ?>"<?php endif; ?>>
			<div class="input-group-addon no-border no-padding">
						<span><button type="button" class="btn btn-danger faupload"
									  data-resize-quality="0.8"
									  data-resize-width="1024"
									  data-resize-height="768"
									  data-input-id="p-<?php echo $val['id']; ?>"
									  data-url="qingdongams/base/upload"
									  data-mimetype="image/gif,image/jpeg,image/png,image/jpg,image/bmp"
									  data-multiple="true" data-preview-id="c-<?php echo $val['id']; ?>"><i class="fa fa-upload"></i> <?php echo __('Upload'); ?></button></span>

			</div>
			<span class="msg-box n-right"></span>
		</div>
		<ul class="row list-inline faupload-preview" id="c-<?php echo $val['id']; ?>"></ul>
	</div>
</div>
<?php endif; if($val['component'] == 'uploadFile'): ?>
<div class="col-xs-12 col-sm-6">
	<div class="form-group col-sm-10">
		<label for="c-<?php echo $val['id']; ?>"><?php if($val['config']['required'] == true): ?><span style="color:red;">*</span><?php endif; ?><?php echo $val['config']['label']; ?>:</label>
		<div class="input-group">
			<input id="p-<?php echo $val['id']; ?>" class="form-control" size="35" name="row[<?php echo $val['id']; ?>]" type="text"  <?php if($val['config']['required'] == true): ?>data-rule="required"<?php endif; if(isset($row[$val['id'].'_str'])): ?>value="<?php echo $row[$val['id'].'_str']; ?>"<?php endif; ?>>
			<div class="input-group-addon no-border no-padding">
						<span><button type="button" class="btn btn-danger faupload"
									  data-input-id="p-<?php echo $val['id']; ?>"
									  data-url="qingdongams/base/upload"
									  data-multiple="true" data-preview-id="c-<?php echo $val['id']; ?>"><i class="fa fa-upload"></i> <?php echo __('Upload'); ?></button></span>

			</div>
			<span class="msg-box n-right"></span>
		</div>
	</div>
</div>
<?php endif; ?>

<!--金额-->
<?php if($val['component'] == 'input-money'): ?>
<div class="col-xs-12 col-sm-6">
	<div class="form-group col-sm-10">
		<label for="c-<?php echo $val['id']; ?>"><?php if($val['config']['required'] == true): ?><span style="color:red;">*</span><?php endif; ?><?php echo $val['config']['label']; ?>:</label>
		<input id="c-<?php echo $val['id']; ?>"  class="form-control"<?php if($val['config']['required'] == true): ?>data-rule="required"<?php endif; ?> placeholder="<?php echo $val['config']['placeholder']; ?>" name="row[<?php echo $val['id']; ?>]"
		type="number" value="<?php echo (isset($row[$val['id']]) && ($row[$val['id']] !== '')?$row[$val['id']]:''); ?>">
	</div>
</div>
<?php endif; ?>
<!--	手机号-->
<?php if($val['component'] == 'input-mobile'): ?>
<div class="col-xs-12 col-sm-6">
	<div class="form-group col-sm-10">
		<label for="c-<?php echo $val['id']; ?>"><?php if($val['config']['required'] == true): ?><span style="color:red;">*</span><?php endif; ?><?php echo $val['config']['label']; ?>:</label>
		<input id="c-<?php echo $val['id']; ?>" value="<?php echo (isset($row[$val['id']]) && ($row[$val['id']] !== '')?$row[$val['id']]:''); ?>" class="form-control"
			   <?php if($val['config']['required'] == true): ?>data-rule="required;mobile"<?php endif; ?>
		placeholder="<?php echo $val['config']['placeholder']; ?>" name="row[<?php echo $val['id']; ?>]" type="text">
	</div>
</div>
<?php endif; ?>
<!--邮箱-->
<?php if($val['component'] == 'input-email'): ?>
<div class="col-xs-12 col-sm-6">
	<div class="form-group col-sm-10">
		<label for="c-<?php echo $val['id']; ?>"><?php if($val['config']['required'] == true): ?><span style="color:red;">*</span><?php endif; ?><?php echo $val['config']['label']; ?>:</label>
		<input id="c-<?php echo $val['id']; ?>" value="<?php echo (isset($row[$val['id']]) && ($row[$val['id']] !== '')?$row[$val['id']]:''); ?>" class="form-control"
			   <?php if($val['config']['required'] == true): ?>data-rule="required;email"<?php endif; ?>
		placeholder="<?php echo $val['config']['placeholder']; ?>" name="row[<?php echo $val['id']; ?>]" type="text">
	</div>
</div>
<?php endif; ?>
<!--编辑器-->
<?php if($val['component'] == 'editor'): ?>
<div class="col-xs-12 col-sm-12">
	<div class="form-group col-sm-12">
		<label for="c-<?php echo $val['id']; ?>"><?php if($val['config']['required'] == true): ?><span style="color:red;">*</span><?php endif; ?><?php echo $val['config']['label']; ?>:</label>
		<textarea id="c-<?php echo $val['id']; ?>" class="form-control editor"<?php if($val['config']['required'] == true): ?>data-rule="required"<?php endif; ?> rows="5" name="row[<?php echo $val['id']; ?>]"
		placeholder="<?php echo $val['config']['placeholder']; ?>"><?php echo (isset($row[$val['id']]) && ($row[$val['id']] !== '')?$row[$val['id']]:''); ?></textarea>
	</div>
</div>
<?php endif; ?>
<!--开关-->
<?php if($val['component'] == 'switch'): ?>
<div class="col-xs-12 col-sm-6">
	<div class="form-group col-sm-10">
		<label for="c-<?php echo $val['id']; ?>"><?php if($val['config']['required'] == true): ?><span style="color:red;">*</span><?php endif; ?>
			<?php echo $val['config']['label']; ?>:</label>
		<div class="form-control" style="border: 0">
			<input  id="c-<?php echo $val['id']; ?>" name="row[<?php echo $val['id']; ?>]" type="hidden" value="<?php echo (isset($row[$val['id']]) && ($row[$val['id']] !== '')?$row[$val['id']]:''); ?>">
			<a href="javascript:;" data-toggle="switcher" class="btn-switcher" data-input-id="c-<?php echo $val['id']; ?>" data-yes="1" data-no="0" >
				<?php if(isset($row[$val['id']])): if($row[$val['id']] == '0'): ?>
					<i class='fa fa-toggle-on text-success fa-flip-horizontal text-gray fa-2x'></i>
					<?php else: ?>
					<i class='fa fa-toggle-on text-success fa-2x'></i>
					<?php endif; else: ?>
				<i class='fa fa-toggle-on text-success fa-flip-horizontal text-gray fa-2x'></i>
				<?php endif; ?>
			</a>

		</div>
	</div>
</div>
<?php endif; ?>

<!--地理位置-->
<?php if($val['component'] == 'location'): ?>
<div class="col-xs-12 col-sm-10">
	<div class="form-group col-sm-10">
		<label>地理位置:</label>
		<div class="input-group">
			<input  id="<?php echo $val['id']; ?>_text"  placeholder="请选择地理地址" value="<?php echo (isset($row[$val['id']]) && ($row[$val['id']] !== '')?$row[$val['id']]:''); ?>" class="form-control" disabled type="text"/>
			<div class="input-group-addon no-border no-padding">
							<span><button type="button" data-lng="<?php echo $val['id']; ?>_lng" data-lat="<?php echo $val['id']; ?>_lat"
										  data-address="<?php echo $val['id']; ?>" class="btn btn-primary fachoose-map">
								<i class="fa fa-list"></i> <?php echo __('Choose'); ?></button></span>
			</div>
		</div>
		<input id="<?php echo $val['id']; ?>_lng" name="row[<?php echo $val['id']; ?>_lng]" type="hidden" value="<?php echo (isset($row[$val['id'].'_lng']) && ($row[$val['id'].'_lng'] !== '')?$row[$val['id'].'_lng']:''); ?>"  >
		<input id="<?php echo $val['id']; ?>_lat" name="row[<?php echo $val['id']; ?>_lat]" type="hidden" value="<?php echo (isset($row[$val['id'].'_lat']) && ($row[$val['id'].'_lat'] !== '')?$row[$val['id'].'_lat']:''); ?>"  >
		<input id="<?php echo $val['id']; ?>" name="row[<?php echo $val['id']; ?>]" type="hidden" value="<?php echo (isset($row[$val['id']]) && ($row[$val['id']] !== '')?$row[$val['id']]:''); ?>"  >
	</div>
</div>
<?php endif; ?>
<!--地图-->
<?php if($val['component'] == 'map'): ?>
<div class="col-xs-12 col-sm-10">
	<div class="form-group col-sm-10">
		<label>地理位置:</label>
		<div class="input-group">
			<input  id="<?php echo $val['id']; ?>_text"  placeholder="请选择地理地址" value="<?php echo (isset($row[$val['id']]) && ($row[$val['id']] !== '')?$row[$val['id']]:''); ?>" class="form-control" disabled type="text"/>
			<div class="input-group-addon no-border no-padding">
							<span><button type="button" data-lng="<?php echo $val['id']; ?>_lng" data-lat="<?php echo $val['id']; ?>_lat"
										  data-address="<?php echo $val['id']; ?>" class="btn btn-primary fachoose-map">
								<i class="fa fa-list"></i> <?php echo __('Choose'); ?></button></span>
			</div>
		</div>
		<input id="<?php echo $val['id']; ?>_lng" name="row[<?php echo $val['id']; ?>_lng]" type="hidden" value="<?php echo (isset($row[$val['id'].'_lng']) && ($row[$val['id'].'_lng'] !== '')?$row[$val['id'].'_lng']:''); ?>"  >
		<input id="<?php echo $val['id']; ?>_lat" name="row[<?php echo $val['id']; ?>_lat]" type="hidden" value="<?php echo (isset($row[$val['id'].'_lat']) && ($row[$val['id'].'_lat'] !== '')?$row[$val['id'].'_lat']:''); ?>"  >
		<input id="<?php echo $val['id']; ?>" name="row[<?php echo $val['id']; ?>]" type="hidden" value="<?php echo (isset($row[$val['id']]) && ($row[$val['id']] !== '')?$row[$val['id']]:''); ?>"  >
	</div>
</div>
<?php endif; ?>
<!--关联客户-->
<?php if($val['component'] == 'customer'): ?>
<div class="col-xs-12 col-sm-6">
	<div class="form-group col-sm-10">
		<label><?php if($val['config']['required'] == true): ?><span style="color:red;">*</span><?php endif; ?><?php echo $val['config']['label']; ?>:</label>
		<input type="hidden" name="row[<?php echo $val['id']; ?>]"
			   <?php if(isset($row[$val['id']])): ?>value="<?php echo (isset($row[$val['id']]['id']) && ($row[$val['id']]['id'] !== '')?$row[$val['id']]['id']:''); ?>"<?php endif; if($val['config']['required'] == true): ?>data-rule="required"<?php endif; ?> >
		<div class="form-control">
			<a href="javascript:void(0)" class="r-select-customer" data-name="row[<?php echo $val['id']; ?>]"
			   data-url="qingdongams/customer/customer/index?isselect=1" >
				<?php if(isset($row[$val['id']]) && $row[$val['id']]): ?>
				<?php echo (isset($row[$val['id']]['name']) && ($row[$val['id']]['name'] !== '')?$row[$val['id']]['name']:''); else: ?>【请点击选择】<?php endif; ?></a>
		</div>
	</div>
</div>
<?php endif; ?>
<!--关联联系人-->
<?php if($val['component'] == 'contact'): ?>
<div class="col-xs-12 col-sm-6">
	<div class="form-group col-sm-10">
		<label><?php if($val['config']['required'] == true): ?><span style="color:red;">*</span><?php endif; ?><?php echo $val['config']['label']; ?>:</label>
		<input type="hidden" name="row[<?php echo $val['id']; ?>]"
			   <?php if(isset($row[$val['id']])): ?>value="<?php echo (isset($row[$val['id']]['id']) && ($row[$val['id']]['id'] !== '')?$row[$val['id']]['id']:''); ?>"<?php endif; if($val['config']['required'] == true): ?>data-rule="required"<?php endif; ?> >
		<div class="form-control">
			<a href="javascript:void(0)" class="r-select-contacts" data-name="row[<?php echo $val['id']; ?>]"
			   data-url="qingdongams/customer/contacts/index?isselect=1" >
				<?php if(isset($row[$val['id']]) && $row[$val['id']]): ?>
				<?php echo (isset($row[$val['id']]['name']) && ($row[$val['id']]['name'] !== '')?$row[$val['id']]['name']:''); else: ?>【请点击选择】<?php endif; ?>
			</a>
		</div>
	</div>
</div>
<?php endif; ?>
<!--关联合同-->
<?php if($val['component'] == 'contract'): ?>
<div class="col-xs-12 col-sm-6">
	<div class="form-group col-sm-10">
		<label><?php if($val['config']['required'] == true): ?><span style="color:red;">*</span><?php endif; ?><?php echo $val['config']['label']; ?>:</label>
		<input type="hidden" name="row[<?php echo $val['id']; ?>]"
			   <?php if(isset($row[$val['id']])): ?>value="<?php echo (isset($row[$val['id']]['id']) && ($row[$val['id']]['id'] !== '')?$row[$val['id']]['id']:''); ?>"<?php endif; if($val['config']['required'] == true): ?>data-rule="required"<?php endif; ?> >
		<div class="form-control">
			<a href="javascript:void(0)" class="r-select-contract" data-name="row[<?php echo $val['id']; ?>]"
			   data-url="qingdongams/customer/contract/index?isselect=1" >
				<?php if(isset($row[$val['id']]) && $row[$val['id']]): ?>
				<?php echo (isset($row[$val['id']]['name']) && ($row[$val['id']]['name'] !== '')?$row[$val['id']]['name']:''); else: ?>【请点击选择】<?php endif; ?>
			</a>
		</div>
	</div>
</div>
<?php endif; ?>
<!--关联商机-->
<?php if($val['component'] == 'business'): ?>
<div class="col-xs-12 col-sm-6">
	<div class="form-group col-sm-10">
		<label><?php if($val['config']['required'] == true): ?>
			<span style="color:red;">*</span><?php endif; ?><?php echo $val['config']['label']; ?>:</label>
		<input type="hidden" name="row[<?php echo $val['id']; ?>]"
			   <?php if(isset($row[$val['id']])): ?>value="<?php echo (isset($row[$val['id']]['id']) && ($row[$val['id']]['id'] !== '')?$row[$val['id']]['id']:''); ?>"<?php endif; if($val['config']['required'] == true): ?>data-rule="required"<?php endif; ?> >
		<div class="form-control">
			<a href="javascript:void(0)" class="r-select-business" data-name="row[<?php echo $val['id']; ?>]"
			   data-url="qingdongams/customer/business/index?isselect=1" >
				<?php if(isset($row[$val['id']]) && $row[$val['id']]): ?>
				<?php echo (isset($row[$val['id']]['name']) && ($row[$val['id']]['name'] !== '')?$row[$val['id']]['name']:''); else: ?>【请点击选择】<?php endif; ?>
			</a>
		</div>
	</div>
</div>
<?php endif; ?>
<!--关联员工-->
<?php if($val['component'] == 'staff'): ?>
<div class="col-xs-12 col-sm-6">
	<div class="form-group col-sm-10">
		<label for="c-<?php echo $val['id']; ?>"><?php if($val['config']['required'] == true): ?>
			<span style="color:red;">*</span><?php endif; ?><?php echo $val['config']['label']; ?>:</label>
		<input id="c-<?php echo $val['id']; ?>" <?php if($val['config']['required'] == true): ?>data-rule="required"<?php endif; ?> class="form-control selectpage"
			   name="row[<?php echo $val['id']; ?>]" placeholder="请选择员工"
			   data-source="qingdongams/department/staff/index" type="text"
			   <?php if(isset($row[$val['id']])): ?>value="<?php echo (isset($row[$val['id']]['id']) && ($row[$val['id']]['id'] !== '')?$row[$val['id']]['id']:''); ?>"<?php endif; ?>
			   >
	</div>
</div>
<?php endif; ?>
<!--关联部门-->
<?php if($val['component'] == 'department'): ?>
<div class="col-xs-12 col-sm-6">
	<div class="form-group col-sm-10">
		<label for="c-<?php echo $val['id']; ?>"><?php if($val['config']['required'] == true): ?>
			<span style="color:red;">*</span><?php endif; ?><?php echo $val['config']['label']; ?>:</label>
		<input id="c-<?php echo $val['id']; ?>" <?php if($val['config']['required'] == true): ?>data-rule="required"<?php endif; ?> class="form-control selectpage"
			   name="row[<?php echo $val['id']; ?>]" placeholder="请选择部门" data-multiple="true" data-max-select-limit="1"
			   data-source="qingdongams/department/group/index" type="text"
			   <?php if(isset($row[$val['id']])): ?>value="<?php echo (isset($row[$val['id']]['id']) && ($row[$val['id']]['id'] !== '')?$row[$val['id']]['id']:''); ?>"<?php endif; ?>
		>
	</div>
</div>
<?php endif; if($val['component'] == 'label'): ?>
<div class="col-xs-12 col-sm-6">
	<div class="form-group col-sm-10">
		<label for="c-<?php echo $val['id']; ?>"><?php if($val['config']['required'] == true): ?><span style="color:red;">*</span><?php endif; ?><?php echo $val['config']['label']; ?>:</label>
		<select id="c-<?php echo $val['id']; ?>" name="row[<?php echo $val['id']; ?>][]" class="form-control selectpicker" multiple="multiple" data-live-search="true">
			<?php if(is_array($val['config']['content']) || $val['config']['content'] instanceof \think\Collection || $val['config']['content'] instanceof \think\Paginator): if( count($val['config']['content'])==0 ) : echo "" ;else: foreach($val['config']['content'] as $key=>$vo): ?>
			<option value="<?php echo $vo['value']; ?>" disabled><?php echo $vo['label']; ?></option>
				<?php if(is_array($vo['children']) || $vo['children'] instanceof \think\Collection || $vo['children'] instanceof \think\Paginator): if( count($vo['children'])==0 ) : echo "" ;else: foreach($vo['children'] as $key=>$children): ?>
				<option value="<?php echo $children['value']; ?>^<?php echo $children['color']; ?>" <?php if(isset($row[$val['id']])): if(in_array(($children['la_va']), is_array($row[$val['id']])?$row[$val['id']]:explode(',',$row[$val['id']]))): ?>selected="selected"<?php endif; endif; ?> style="padding-left: 20px;color: <?php echo $children['color']; ?>"><?php echo $children['label']; ?></option>
				<?php endforeach; endif; else: echo "" ;endif; endforeach; endif; else: echo "" ;endif; ?>
		</select>
	</div>
</div>
<?php endif; endif; endforeach; endif; else: echo "" ;endif; ?>
	</div>


	<div class="form-group layer-footer">
		<label class="control-label col-xs-12 col-sm-2"></label>
		<div class="col-xs-12 col-sm-8">
			<button type="submit" class="btn btn-success btn-embossed disabled"><?php echo __('OK'); ?></button>
			<button type="reset" class="btn btn-default btn-embossed"><?php echo __('Reset'); ?></button>
		</div>
	</div>
</form>

                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
        <script src="/assets/js/require.min.js" data-main="/assets/js/require-backend<?php echo \think\Config::get('app_debug')?'':'.min'; ?>.js?v=<?php echo htmlentities($site['version'] ?? ''); ?>"></script>

    </body>
</html>
